package com.nf;

public class Car {

    public Car(String name, Float price) {
        System.out.println("ioc容器调用我这个构造方法，并且传递:"+name+price);
        this.name = name;
        this.price = price;
    }

    private String name;
    private Float price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }
}
